import React from 'react'



const FirstPage = React.lazy(() => import('./views/FirstPage'))

// Админ
const AddEmployee = React.lazy(() => import('./views/admin/AddEmployee'))
const RemoveEmployee = React.lazy(() => import('./views/admin/RemoveEmployee'))

// Доктор
const DoctorSchedule = React.lazy(() => import('./views/doctor/DoctorSchedule'))
const DoctorAbsent = React.lazy(() => import('./views/doctor/DoctorAbsent'))

// HR
const DoctorInfo = React.lazy(() => import('./views/hr/DoctorInfo'))
const AddDoctor = React.lazy(() => import('./views/hr/AddDoctor'))
const DoctorManage = React.lazy(() => import('./views/hr/DoctorManage'))
const ScheduleHr = React.lazy(() => import('./views/hr/ScheduleHr'))

// Босс
const Statistics = React.lazy(() => import('./views/boss/Statistics'))
const Forecast = React.lazy(() => import('./views/boss/Forecast'))
const StatisticsForecast = React.lazy(() => import('./views/boss/StatisticsForecast'))
const HourForecast = React.lazy(() => import('./views/boss/HourForecast'))
const ScheduleBoss = React.lazy(() => import('./views/boss/ScheduleBoss'))
const ScheduleOfDoctors = React.lazy(() => import('./views/boss/ScheduleOfDoctors'))
const ScheduleOfDoctorsByModality = React.lazy(() => import('./views/boss/ScheduleOfDoctorsByModality'))
const ListOfDoctors = React.lazy(() => import('./views/boss/ListOfDoctors'))
const BossAbsent = React.lazy(() => import('./views/boss/BossAbsent'))

const routes = [
  { path: '/first_page', name: 'FirstPage', element: FirstPage },

  // Админ
  { path: '/add_employee', name: 'AddEmployee', element: AddEmployee },
  { path: '/remove_employee', name: 'RemoveEmployee', element: RemoveEmployee },

  // Доктор
  { path: '/doctor_schedule', name: 'Schedule', element: DoctorSchedule },
  { path: '/doctor_absent', name: 'DoctorAbsent', element: DoctorAbsent },

  // HR
  { path: '/doctor_info', name: 'DoctorInfo', element: DoctorInfo },
  { path: '/add_doctor', name: 'AddDoctor', element: AddDoctor },
  { path: '/doctor_manage', name: 'DoctorManage', element: DoctorManage },
  { path: '/schedule_hr', name: 'ScheduleHr', element: ScheduleHr },

  // Boss
  { path: '/statistics', name: 'Statistics', element: Statistics },
  { path: '/forecast', name: 'Forecast', element: Forecast },
  { path: '/statistics_forecast', name: 'StatisticsForecast', element: StatisticsForecast },
  { path: '/hour_forecast', name: 'HourForecast', element: HourForecast },
  { path: '/schedule_boss', name: 'ScheduleBoss', element: ScheduleBoss },
  { path: '/schedule_of_doctors', name: 'ScheduleOfDoctors', element: ScheduleOfDoctors },
  { path: '/schedule_of_doctors_by_modality', name: 'ScheduleOfDoctorsByModality', element: ScheduleOfDoctorsByModality },
  { path: '/list_of_doctors', name: 'ListOfDoctors', element: ListOfDoctors },
  { path: '/doctor_manage', name: 'DoctorManage', element: DoctorManage },
  { path: '/boss_absent', name: 'BossAbsent', element: BossAbsent },
]

export default routes
